/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package GUI;

import java.awt.Dimension;
import javax.swing.JFrame;
import javax.swing.JInternalFrame;

/**
 *
 * @author Dopsilon
 */
public class InternalPanels extends JInternalFrame{
    
    public InternalPanels() {
   
    }
       
    public InternalPanels(String name) throws InternalPanelException{
        super(name);
        switch(name){
            case "Table":
                this.setSize(400,300);
                this.setMaximizable(true);
                this.setResizable(true);
                this.setClosable(true);
                break;
            case "Options":
                this.setSize(500,300);
                this.setMaximizable(false);
                this.setResizable(false);
                this.setClosable(true);
                break;
            case "Info":
                this.setClosable(true);
                break;
            default:
                throw new InternalPanelException(name + "Not available");
        }
    }
    
    
    
}
